﻿@model IEnumerable<OdeToFood.Models.ResturantReviews>

@{
    ViewBag.Title = "Review";
}

<h2>The latest Reviews</h2>
@section featured
{
<div style="color:red">We are showing the latest @Model.Count() reviews.</div>
}
@foreach (var item in Model)
{
    <div class="review">
        <h4>@item.Name</h4>
        <span style="color:brown">@item.Rating</span>
        <p>@item.City, @item.Country</p>
        <span class="right">@Html.ActionLink("Edit","Edit",new{ id = @item.Id})</span>
    </div>
}
<p>
    @Html.ActionLink("Create New", "Create")
</p>

